<div class="module module-product-hot">
    <script type="text/javascript" src="<?php echo base_url();?>public/slide/jcarousel/jquery.jcarousel.min.js"></script>
    <link rel="stylesheet" type="text/css" href="<?php echo base_url();?>public/slide/jcarousel/skin.css" />
    <script type="text/javascript">
        function videoNew_initCallback(carousel)
        {
            // Disable autoscrolling if the user clicks the prev or next button.
            /*
            carousel.buttonNext.bind('click', function() {
                carousel.startAuto(0);
            });
        
            carousel.buttonPrev.bind('click', function() {
                carousel.startAuto(0);
            });
            */
            // Pause autoscrolling if the user moves with the cursor over the clip.
            carousel.clip.hover(function() {
                carousel.stopAuto();
            }, function() {
                carousel.startAuto();
            });
        };
        $(document).ready(function(){
            $('#hotProduct').removeClass("hidden");
            $('#hotProduct').jcarousel({
                auto: 3,
                scroll: 1,
                vertical: true,
                wrap: 'circular',
                initCallback: videoNew_initCallback
            });
        });
    </script>
    <div class="title">Sản phẩm bán chạy</div>
    <div class="content">
        <ul id="hotProduct" class="hidden jcarousel-skin-tango">
            <?php
                foreach($product_list as $row){
            ?>
                    <li class="item">
                        <a class="img" href="<?php echo base_url()._setURL($row['Name'])."-product-".$row['ID'].".html";?>" title="<?php echo $row['Name'];?>"><img src="<?php echo $row['Thumb1'];?>" alt="<?php echo $row['Name'];?>" title="<?php echo $row['Name'];?>"/></a>
                        <h4><a class="name" href="<?php echo base_url()._setURL($row['Name'])."-product-".$row['ID'].".html";?>" title="<?php echo $row['Name'];?>"><?php echo $row['Name'];?></a></h4>
                        <span class="cost"><?php echo lang('frontend.cost');?>: <span><?php echo _showMoney((int)($row['Cost']));?> VNĐ</span></span>
                    </li>
            <?php
                }
            ?>
            <div class="clear-both"></div>
        </ul>
        <div class="clear-both"></div>
    </div>
    <div class="clear-both"></div>
</div>